<extend name="Layout/index" />

<script src="__PUBLIC__/jq/jquery-3.0.0.min.js"></script>

<block name="breadcrumb-01">
	<li>
		<i class="icon-home home-icon"></i>
		<a href="#">首页</a>
	</li>
	<li class="active">添加图书</li>
</block>

<block name="breadcrumb-02">
	<h1>
		<a href="<{:U('Mbook/index',array('mid'=>$mid))}>">返回</a>
		<small>
			<i class="icon-double-angle-right"></i>
			 图书列表
		</small>
	</h1>
</block>
<block name='main'>
		<table class="table table-striped table-bordered table-hover">
			<thead>
			 <tr>
				<th>bookid</th>
				<th>书名</th>
				<th>作者</th>
				<th>图片</th>
				<th>操作</th>
			 </tr>
			</thead>
			<tbody>
			<volist name="book" id="vo">
				<tr id="<{$vo.bookid}>">
					<td><{$vo.bookid}></td>
					<td><{$vo.name}></td>
					<td><{$vo.author}></td>
					<td><{$vo.image}></td>
					<th>

					<form action="<{:U('Mbook/doadd')}>" method="post">
						<input type="hidden" name="mid" value="<{$mid}>">
						<input type="hidden" name="bookid" value="<{$vo.bookid}>">
						<input type="hidden" name="title" value="<{$vo.name}>">
						<input type="hidden" name="writer" value="<{$vo.author}>">
						<input type="hidden" name="photo" value="<{$vo.image}>">
						<input onclick=doadd() type="submit" value="添加">
					</form>
					</th>
				</tr>
			
			</volist>
			</tbody>
		</table>
</block>